<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>PowerVR SDK</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
<table width="100%">
  <tr>
    <td width="33%">
      <p align="left">&nbsp;<a href="http://www.imgtec.com"><img border="0" src="IMGLogo.jpg" width="200" height="30"></a></p>
    </td>
    <td width="33%">
      <p align="center"><font color="#808080" face="Arial" size="2">PowerVR Software Development Kit</a></font></p>
    </td>
    <td width="34%">
      <p align="right"><a href="http://www.powervr.com"><img border="0" src="PVRlogo.jpg" width="200" height="27"></a></p>
    </td>
  </tr>
</table>
<hr>
</head><body>
<!-- Generated by Doxygen 1.3.6 -->
<div class="qindex"><a class="qindex" href="index.html">Main&nbsp;Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="annotated.html">Class&nbsp;List</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="namespacemembers.html">Namespace&nbsp;Members</a> | <a class="qindex" href="functions.html">Class&nbsp;Members</a> | <a class="qindex" href="globals.html">File&nbsp;Members</a></div>
<h1>pvrengine::ConsoleLog Class Reference</h1>A Class for storing output from the <a class="el" href="classpvrengine_1_1PVREngine.html">PVREngine</a> and apps that use the engine.  
<a href="#_details">More...</a>
<p>
<code>#include &lt;<a class="el" href="ConsoleLog_8h-source.html">ConsoleLog.h</a>&gt;</code>
<p>
Collaboration diagram for pvrengine::ConsoleLog:<p><center><img src="classpvrengine_1_1ConsoleLog__coll__graph.png" border="0" usemap="#pvrengine_1_1ConsoleLog__coll__map" alt="Collaboration graph"></center>
<map name="pvrengine_1_1ConsoleLog__coll__map">
<area href="classdynamicArray.html" shape="rect" coords="7,7,215,34" alt="">
</map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="classpvrengine_1_1ConsoleLog-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0>
<tr><td></td></tr>
<tr><td colspan=2><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classpvrengine_1_1ConsoleLog.html#a0">ConsoleLog</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classpvrengine_1_1ConsoleLog.html#a1">~ConsoleLog</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classpvrengine_1_1ConsoleLog.html#a2">log</a> (const char *pszFormat,...)</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classpvrengine_1_1ConsoleLog.html#a3">log</a> (const CPVRTString &amp;sString)</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classpvrengine_1_1ConsoleLog.html#a4">setOutputFile</a> (const CPVRTString strLogFile)</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classpvrengine_1_1ConsoleLog.html#a5">setStraightToFile</a> (bool bStraightToFile)</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classpvrengine_1_1ConsoleLog.html#a6">getStraightToFile</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="classdynamicArray.html">dynamicArray</a>&lt; CPVRTString &gt;&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classpvrengine_1_1ConsoleLog.html#a7">getLog</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>CPVRTString&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classpvrengine_1_1ConsoleLog.html#a8">getLastLogLine</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classpvrengine_1_1ConsoleLog.html#a9">writeToFile</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classpvrengine_1_1ConsoleLog.html#a10">appendToFile</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classpvrengine_1_1ConsoleLog.html#a11">clearLog</a> ()</td></tr>

</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
A Class for storing output from the <a class="el" href="classpvrengine_1_1PVREngine.html">PVREngine</a> and apps that use the engine. 
<p>
<dl compact><dt><b>Description:</b></dt><dd>A Class for storing output from the <a class="el" href="classpvrengine_1_1PVREngine.html">PVREngine</a> and apps that use the engine. </dd></dl>

<p>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="a0" doxytag="pvrengine::ConsoleLog::ConsoleLog" ></a><p>
<br><br><h3>ConsoleLog</h3><br><div>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> pvrengine::ConsoleLog::ConsoleLog </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
<dl compact><dt><b>Description:</b></dt><dd>Constructor. </dd></dl>
    </td>
  </tr>
</table>
<a class="anchor" name="a1" doxytag="pvrengine::ConsoleLog::~ConsoleLog" ></a><p>
<br><br><h3>~ConsoleLog</h3><br><div>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> pvrengine::ConsoleLog::~<a class="el" href="classpvrengine_1_1ConsoleLog.html">ConsoleLog</a> </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
<dl compact><dt><b>Description:</b></dt><dd>Destructor. </dd></dl>
    </td>
  </tr>
</table>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="a10" doxytag="pvrengine::ConsoleLog::appendToFile" ></a><p>
<br><br><h3>appendToFile</h3><br><div>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> bool pvrengine::ConsoleLog::appendToFile </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
<dl compact><dt><b>Returns:</b></dt><dd>bool success </dd></dl>
<dl compact><dt><b>Description:</b></dt><dd>appends the entire current log to the specified file </dd></dl>
    </td>
  </tr>
</table>
<a class="anchor" name="a11" doxytag="pvrengine::ConsoleLog::clearLog" ></a><p>
<br><br><h3>clearLog</h3><br><div>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void pvrengine::ConsoleLog::clearLog </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
<dl compact><dt><b>Description:</b></dt><dd>clears the log in memory </dd></dl>
    </td>
  </tr>
</table>
<a class="anchor" name="a8" doxytag="pvrengine::ConsoleLog::getLastLogLine" ></a><p>
<br><br><h3>getLastLogLine</h3><br><div>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> CPVRTString pvrengine::ConsoleLog::getLastLogLine </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
<dl compact><dt><b>Returns:</b></dt><dd>CPVRTString of last line </dd></dl>
<dl compact><dt><b>Description:</b></dt><dd>retrieves the last line from log </dd></dl>
    </td>
  </tr>
</table>
<a class="anchor" name="a7" doxytag="pvrengine::ConsoleLog::getLog" ></a><p>
<br><br><h3>getLog</h3><br><div>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="classdynamicArray.html">dynamicArray</a>&lt;CPVRTString&gt; pvrengine::ConsoleLog::getLog </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
<dl compact><dt><b>Returns:</b></dt><dd>dynamic array of log's contents </dd></dl>
<dl compact><dt><b>Description:</b></dt><dd>retrieves the entire existing log </dd></dl>
    </td>
  </tr>
</table>
<a class="anchor" name="a6" doxytag="pvrengine::ConsoleLog::getStraightToFile" ></a><p>
<br><br><h3>getStraightToFile</h3><br><div>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> bool pvrengine::ConsoleLog::getStraightToFile </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
<dl compact><dt><b>Returns:</b></dt><dd>bool success </dd></dl>
<dl compact><dt><b>Description:</b></dt><dd>gets whether the log is writing straight to file or not </dd></dl>
    </td>
  </tr>
</table>
<a class="anchor" name="a3" doxytag="pvrengine::ConsoleLog::log" ></a><p>
<br><br><h3>log</h3><br><div>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void pvrengine::ConsoleLog::log </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const CPVRTString &amp;&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>sString</em>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
<dl compact><dt><b>Inputs:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign=top><em>sString</em>&nbsp;</td><td>a string </td></tr>
  </table>
</dl>
<dl compact><dt><b>Description:</b></dt><dd>another function to actually add to the log. </dd></dl>
    </td>
  </tr>
</table>
<a class="anchor" name="a2" doxytag="pvrengine::ConsoleLog::log" ></a><p>
<br><br><h3>log</h3><br><div>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void pvrengine::ConsoleLog::log </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const char *&nbsp;</td>
          <td class="mdname" nowrap> <em>pszFormat</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap>...&nbsp;</td>
          <td class="mdname" nowrap></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
<dl compact><dt><b>Inputs:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign=top><em>pszFormat</em>&nbsp;</td><td>a formatted string </td></tr>
  </table>
</dl>
<dl compact><dt><b>Description:</b></dt><dd>main function to actually add to the log. Uses same format as printf. </dd></dl>
    </td>
  </tr>
</table>
<a class="anchor" name="a4" doxytag="pvrengine::ConsoleLog::setOutputFile" ></a><p>
<br><br><h3>setOutputFile</h3><br><div>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> bool pvrengine::ConsoleLog::setOutputFile </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const CPVRTString&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>strLogFile</em>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
<dl compact><dt><b>Inputs:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign=top><em>strLogFile</em>&nbsp;</td><td>logfile path </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>bool success </dd></dl>
<dl compact><dt><b>Description:</b></dt><dd>sets the path to the output file. </dd></dl>
    </td>
  </tr>
</table>
<a class="anchor" name="a5" doxytag="pvrengine::ConsoleLog::setStraightToFile" ></a><p>
<br><br><h3>setStraightToFile</h3><br><div>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void pvrengine::ConsoleLog::setStraightToFile </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">bool&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>bStraightToFile</em>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
<dl compact><dt><b>Inputs:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign=top><em>bStraightToFile</em>&nbsp;</td><td>bool </td></tr>
  </table>
</dl>
<dl compact><dt><b>Description:</b></dt><dd>sets whether the log writes straight to its logfile. </dd></dl>
    </td>
  </tr>
</table>
<a class="anchor" name="a9" doxytag="pvrengine::ConsoleLog::writeToFile" ></a><p>
<br><br><h3>writeToFile</h3><br><div>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> bool pvrengine::ConsoleLog::writeToFile </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
<dl compact><dt><b>Returns:</b></dt><dd>bool success </dd></dl>
<dl compact><dt><b>Description:</b></dt><dd>writes the entire current log to the specified file overwriting the existing file </dd></dl>
    </td>
  </tr>
</table>
<hr>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="ConsoleLog_8h-source.html">ConsoleLog.h</a></ul>
<br>
<br>
<P align=left><FONT size=2><STRONG><A 
   href="http://www.imgtec.com/powervr/insider/legal/index.asp">Copyright</A> � 
   1999-2008, Imagination Technologies Ltd.</STRONG></FONT></P>
<hr>
<address style="align: left;"><small><FONT color=f0f>
Generated by <a href="http://www.doxygen.org/index.html">DOXYGEN</a> 1.3.6</small></address>
</body>
</html>
